import './assets/main.scss'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import './permission'
import i18n from './common/i18n/index.ts'
import 'vditor/dist/index.css'
// import '../src/assets/vditor/dist/index.css'
import '../src/assets/vd-reset.scss'
import 'virtual:svg-icons-register'
import svgIcon from '@/components/SvgIcon/index.vue'
import * as dataUtils from "@/utils/date"
import mitt from "mitt";
const emitter = mitt();
const app = createApp(App)

import { createPinia } from 'pinia'
app.use(createPinia())

// 创建一个根store实例
app.component('svg-icon',svgIcon)
// app.use(store)
import '@/components/Theme/theme.ts'

import * as echarts from 'echarts'
app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$dataUtils = dataUtils
app.config.globalProperties.$emitter = emitter
app.use(router)
app.use(Antd)
app.use(i18n)
app.mount('#app')
